From e38bdca25202c036a54ce86527d1957819765313 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 1 Dec 2016 22:08:59 +0200 Subject: [PATCH] doc: fix code formatting --- src/cargo/util/network.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cargo/util/network.rs b/src/cargo/util/network.rs index 4bc12b7b4..e5f22a1c3 100644 --- a/src/cargo/util/network.rs +++ b/src/cargo/util/network.rs @@ -2,14 +2,17 @@ use util::{CargoResult, Config, errors}; /// Wrapper method for network call retry logic. /// -/// Retry counts provided by Config object 'net.retry'. Config shell outputs +/// Retry counts provided by Config object `net.retry`. Config shell outputs /// a warning on per retry. /// /// Closure must return a CargoResult. /// -/// Example: +/// # Examples +/// +/// ```ignore /// use util::network; /// cargo_result = network.with_retry(&config, || something.download()); +/// ``` pub fn with_retry(config: &Config, mut callback: F) -> CargoResult where F: FnMut() -> Result, E: errors::NetworkError -- 2.30.2